<template>
<P v-for="(item,index) in arr" :="index">
    索引值：{{index}} --- 元素的内容是：{{item}}
</P>
<v-if></v-if>
</template>
<script scoped>
import VIf from "./VIf.vue"
const arr=["HTTP","CSS","JavaScript","JQuery","VUE"]
</script >
<style>
</style>